package com.ruoyi.apartmentattribute.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.apartmentattribute.mapper.ApartmentattributeMapper;
import com.ruoyi.apartmentattribute.domain.Apartmentattribute;
import com.ruoyi.apartmentattribute.service.IApartmentattributeService;

/**
 * 公寓属性Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-14
 */
@Service
public class ApartmentattributeServiceImpl implements IApartmentattributeService 
{
    @Autowired
    private ApartmentattributeMapper apartmentattributeMapper;

    /**
     * 查询公寓属性
     * 
     * @param id 公寓属性主键
     * @return 公寓属性
     */
    @Override
    public Apartmentattribute selectApartmentattributeById(Long id)
    {
        return apartmentattributeMapper.selectApartmentattributeById(id);
    }

    /**
     * 查询公寓属性列表
     * 
     * @param apartmentattribute 公寓属性
     * @return 公寓属性
     */
    @Override
    public List<Apartmentattribute> selectApartmentattributeList(Apartmentattribute apartmentattribute)
    {
        return apartmentattributeMapper.selectApartmentattributeList(apartmentattribute);
    }

    /**
     * 新增公寓属性
     * 
     * @param apartmentattribute 公寓属性
     * @return 结果
     */
    @Override
    public int insertApartmentattribute(Apartmentattribute apartmentattribute)
    {
        return apartmentattributeMapper.insertApartmentattribute(apartmentattribute);
    }

    /**
     * 修改公寓属性
     * 
     * @param apartmentattribute 公寓属性
     * @return 结果
     */
    @Override
    public int updateApartmentattribute(Apartmentattribute apartmentattribute)
    {
        return apartmentattributeMapper.updateApartmentattribute(apartmentattribute);
    }

    /**
     * 批量删除公寓属性
     * 
     * @param ids 需要删除的公寓属性主键
     * @return 结果
     */
    @Override
    public int deleteApartmentattributeByIds(Long[] ids)
    {
        return apartmentattributeMapper.deleteApartmentattributeByIds(ids);
    }

    /**
     * 删除公寓属性信息
     * 
     * @param id 公寓属性主键
     * @return 结果
     */
    @Override
    public int deleteApartmentattributeById(Long id)
    {
        return apartmentattributeMapper.deleteApartmentattributeById(id);
    }
}
